/* Custom Styles for Merchant Navy Training Institute */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.header-top {
    background-color: #003366 !important;
}

.top-contact i {
    margin-right: 5px;
}

.top-social a:hover {
    color: #ffc107 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffc107 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #003366 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.9)), url('../media/image/1466094banner1.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-image {
    max-width: 500px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Statistics Section */
.stats-section {
    background-color: #003366;
}

.stat-card {
    padding: 30px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card p {
    font-weight: 500;
    color: #003366;
}

/* Features Section */
.features-section {
    background-color: white;
    padding: 80px 0;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    background: #003366;
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card:hover i {
    color: #ffc107 !important;
}

.feature-card i {
    color: #003366;
    margin-bottom: 20px;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    margin-bottom: 0;
}

.feature-card:hover p {
    color: white;
}

/* Footer Styles */
.footer {
    background-color: #003366;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a:hover {
    color: #ffc107 !important;
}

.social-icons a {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.map-container iframe {
    border-radius: 10px;
}

.copyright {
    background-color: #003366;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-image {
        max-width: 300px;
        margin-top: 30px;
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .feature-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .header-top .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .top-social {
        justify-content: center;
    }

    .navbar-brand {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('../media/image/1466094banner1.jpg');
    background-size: cover;
    background-position: center;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ffc107;
}

/* About Section */
.about-section .img-fluid {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Why Choose Us */
.why-choose-us .feature-card {
    padding: 40px 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.why-choose-us .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #003366, #ffc107);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
}

/* Contact Section */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-details h5 {
    margin-bottom: 5px;
    color: #003366;
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 0;
    color: #6c757d;
}

.form-floating > label {
    padding-left: 2.5rem;
}

.form-floating > .form-control {
    padding-left: 2.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gallery Section */
.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    background: rgba(0, 51, 102, 0.8);
}

.gallery-overlay {
    transition: all 0.3s ease;
    background: rgba(0, 51, 102, 0.8);
}

.gallery-link {
    text-decoration: none;
}

.gallery-link:hover {
    text-decoration: none;
}

/* Login Section */
.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.login-card .form-label {
    font-weight: 600;
    color: #003366;
}

/* Exam Section */
.exam-section {
    background-color: #003366;
}

.sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.guidelines-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dashboard-section {
    background-color: #003366;
}

.welcome-banner img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-card {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dashboard-card-inner {
    max-width: 520px;
    margin: 0 auto;
}

.dashboard-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.dashboard-card .form-control {
    height: 56px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

.dashboard-card .btn-warning {
    min-width: 180px;
    border-radius: 12px;
    padding: 12px 24px;
}

.exam-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.exam-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003366;
    margin-bottom: 20px;
}

.exam-info {
    margin-bottom: 20px;
}

.exam-info .d-flex {
    margin-bottom: 10px;
}

.exam-info i {
    width: 20px;
    color: #ffc107;
}

.countdown-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.time-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    padding: 15px 5px;
    border: 1px solid #e9ecef;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 5px;
}

.time-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Success Section */
.success-section {
    background-color: #003366;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.success-card {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.success-icon .fas {
    font-size: 4rem;
    color: #198754;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
}

.success-message {
    font-size: 1.1rem;
    color: #6c757d;
}

.login-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
}

.login-card .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.login-card .btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-card .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.student-login-section{
    min-height: 100vh;
    background: linear-gradient(135deg, #0b2a6f 0%, #1a4a9e 25%, #f5f7fb 75%, #eef3ff 100%);
    background-attachment: fixed;
    padding: 60px 20px;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    visibility: visible !important;
    width: 100%;
}

.student-login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 199, 79, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: floatBackground 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.student-login-section .container {
    position: relative;
    z-index: 1;
}

@keyframes floatBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}


.login-card{
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(11, 42, 111, 0.15), 0 0 40px rgba(249, 199, 79, 0.1);
    text-align: center;
    border-top: 5px solid #f9c74f;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.login-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(11, 42, 111, 0.2), 0 0 60px rgba(249, 199, 79, 0.15);
}


.login-icon{
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg,#f9c74f,#ffb703);
    border-radius: 50%;
    margin: 0 auto 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:38px;
    box-shadow: 0 10px 30px rgba(249, 199, 79, 0.3);
    transition: all 0.3s ease;
    animation: iconBounce 2s ease-in-out infinite;
}

.login-card:hover .login-icon {
    transform: scale(1.1) rotateZ(5deg);
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


.login-title{
    font-size: 38px;
    font-weight: 700;
    color:#0b2a6f;
    margin-bottom:10px;
    background: linear-gradient(135deg, #0b2a6f, #1a4a9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle{
    color:#6c757d;
    margin-bottom:35px;
    font-size:16px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.login-card:hover .login-subtitle {
    color: #495057;
}


.form-label{
    font-weight:600;
    color:#0b2a6f;
    display:block;
    text-align:left;
    margin-bottom:10px;
    transition: color 0.3s ease;
}

.form-label:hover {
    color: #f9c74f;
}

.input-group{
    display:flex;
    align-items:center;
    transition: all 0.3s ease;
}

.input-group-text{
    background:#0b2a6f;
    color:#fff;
    border:none;
    padding:15px 18px;
    border-radius:12px 0 0 12px;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, #1a4a9e, #2563eb);
    box-shadow: 0 5px 15px rgba(11, 42, 111, 0.2);
}


.form-control{
    height:58px;
    border:2px solid #dce3f0;
    border-left:none;
    border-radius:0 12px 12px 0;
    padding-left:15px;
    font-size:16px;
    font-family: 'Poppins', sans-serif;
    box-shadow:none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus{
    border-color:#0b2a6f;
    background: #fff;
    box-shadow: 0 0 0 0.3rem rgba(11, 42, 111, 0.1), inset 0 0 10px rgba(11, 42, 111, 0.05);
}

.form-control::placeholder {
    color: #adb5bd;
}


.login-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:14px;
    background: linear-gradient(135deg,#f9c74f,#ffb703);
    color:#000;
    font-size:20px;
    font-weight:700;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top:10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(249, 199, 79, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover{
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(249, 199, 79, 0.4);
    background: linear-gradient(135deg, #ffb703, #ffa500);
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.login-btn i{
    margin-right:10px;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(3px);
}


.login-footer{
    margin-top:25px;
    color:#6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-footer a{
    color:#0b2a6f;
    font-weight:600;
    text-decoration:none;
    transition: all 0.3s ease;
    position: relative;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f9c74f, #ffb703);
    transition: width 0.3s ease;
}

.login-footer a:hover {
    color: #f9c74f;
}

.login-footer a:hover::after {
    width: 100%;
}


@media(max-width:576px){

    .student-login-section {
        min-height: auto;
        padding: 40px 15px;
    }

    .login-card{
        padding:30px 20px;
        box-shadow: 0 15px 40px rgba(11, 42, 111, 0.1);
    }

    .login-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .login-title{
        font-size:30px;
    }

    .login-btn {
        height: 52px;
        font-size: 18px;
    }

}

/* Placements Section */
.placements-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.placements-section .text-primary {
    color: #003366 !important;
}

.placement-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
}

.placement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #003366, #ffc107);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.placement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.placement-card:hover::before {
    transform: scaleX(1);
}

.placement-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 0 auto;
}

.placement-card:hover .placement-img-wrapper {
    border-color: #ffc107;
    background-color: #003366;
}

.placement-card:hover .placement-img-wrapper i {
    color: #ffffff !important;
    transform: scale(1.1);
}

.placement-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.placement-card:hover .placement-img-wrapper img {
    transform: scale(1.1);
}

.student-name {
    color: #003366;
    font-size: 1.25rem;
}

.course-name {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.placement-details {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.detail-item span {
    color: #475569;
    font-size: 0.95rem;
}

.detail-item strong {
    color: #1e293b;
    font-weight: 600;
}

.placement-badge {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
}
