/* Custom Styles for Notehubs Nepal Results Portal */

/* Modal Styles */
.wishText span {
    color: #e03268;
}

.resultModal .modal-body .congrats-img {
    margin-bottom: 0;
}

.resultModal .modal-footer {
    padding: 1.5em;
    text-align: center;
    border-top: 1px solid #ddd;
}

.resultModal .btn-close {
    position: absolute;
    top: 0;
    right: 5px;
}

.result-not-published {
    background: #587d9e;
    color: #fff;
    padding: 15px;
    border-radius: 7px;
}

/* Progress Bar Styles */
.result_comming_progress {
    width: 100%;
    background-color: #326cac;
    font-size: 18px;
}

.result_comming_wrapper .progress {
    height: 40px !important;
    margin-bottom: 1rem;
}

.result_publish {
    background-color: green;
}

/* Gradient Button Styles */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient-success:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Card Header Gradient Styles */
.card-header-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-header-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* Form Range Badge Styles */
.range-badge {
    min-width: 60px;
    font-size: 1rem;
}

/* Result Display Cards */
.result-highlight-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.result-card-border-primary {
    border: 2px solid #667eea;
}

.result-card-border-success {
    border: 2px solid #28a745;
}

.text-primary-gradient {
    color: #667eea;
}

.text-secondary-gradient {
    color: #764ba2;
}

.text-success-gradient {
    color: #28a745;
}

.text-info-gradient {
    color: #20c997;
}

.text-heading-primary {
    color: #374677;
}

/* Sponsor Logo */
.sponsor-logo {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.sponsor-logo a {
    display: block;
}

/* Table Styles */
tbody td {
    font-weight: 400;
    font-size: 14px;
}

@media screen and (max-width: 426px) {
    tbody td {
        font-size: 12px;
    }
    thead {
        font-size: 12px;
    }
}

/* Share Result Styles */
.share-result {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    column-gap: 10px;
    text-decoration: none;
    padding: 12px;
    color: white;
    background: #326cac;
    border-radius: 2px;
    margin: 0;
}

.share-result:focus,
.share-result:active {
    color: white;
    outline: none;
}

.share-result p {
    margin: 0;
    font-family: Poppins;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

.share-inside-wrapper {
    margin: 0 auto;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 16px 6px;
    box-shadow: 0px 0px 4px 0px #00000026;
}

.social-media-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    flex: 0 0 20%;
}

.social-media-wrap a {
    width: 24px;
    height: 24px;
}

.social-media-wrap a img {
    width: 100%;
    height: 100%;
}

.social-media-wrap p {
    margin: 0;
    font-family: Poppins;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
}

#share-section {
    display: none;
    width: 80%;
    margin: 0;
    margin-bottom: 20px;
}

@media screen and (max-width: 500px) {
    #share-section {
        width: 100%;
    }
    .share-result {
        width: 100%;
    }
    .view-btn {
        width: 100% !important;
        margin: 0 !important;
        margin-bottom: 10px !important;
    }
    .o-1 {
        order: 1 !important;
    }
    .o-2 {
        order: 2 !important;
    }
    .o-3 {
        order: 3 !important;
    }
}

@media screen and (max-width: 400px) {
    .social-media-wrap a {
        width: 20px;
        height: 20px;
    }
    .social-media-wrap p {
        font-size: 10px;
    }
}

@media screen and (max-width: 335px) {
    .share-inside-wrapper {
        padding: 16px 0;
    }
}

/* Header Styles */
.header {
    border: none !important;
}

.adsbygoogle {
    background: #e6e6e6;
}

.main-content .result-content .content h1 {
    text-transform: uppercase;
    font-weight: 700;
    color: #374677;
    font-size: 3em;
}

.main-content .result-content .content h1 span {
    color: #e03268;
}

.main-content .result-content .content h2 {
    font-size: 2.3em;
}

.result-content.active {
    background: #d1e9ff;
}

/* Navigation Banner */
.header-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    border-bottom: 1px solid #999;
    border-top: 1px solid #999;
    padding: 6px 0 !important;
}

.pages-list {
    display: flex;
    list-style: none;
    align-items: center;
    column-gap: 26px;
    font-weight: 600;
    margin: 0 !important;
}

.pages-list a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    position: relative;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.pages-list a:hover {
    color: #326cac;
}

.result_comming_wrapper .progerss .progress_bar {
    width: 79% !important;
    padding: 0 50px 0 10px !important;
}

.result_blink_wrapper p {
    margin: 0;
    color: #326cac;
    font-weight: 500;
}

.site-logo {
    width: 100% !important;
}

.site-logo img {
    width: 190px;
}

.site-logo span {
    font-size: 14px;
}

.result_blink_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.result_blink_wrapper figure {
    width: 50px;
    margin: 0;
}

.result_blink_wrapper figure img {
    width: 50px;
    height: 19px;
    object-fit: cover;
}

.result_blink_wrapper:before,
.result_blink_wrapper:after {
    content: "";
    display: block;
    position: absolute;
    top: 8px;
    left: -19px;
    width: 10px;
    height: 10px;
    background: #204a8e;
    border-radius: 50%;
    z-index: -1;
    -webkit-animation: grow 1.25s ease-in-out infinite;
    animation: grow 1.25s ease-in-out infinite;
}

.result_blink_wrapper::after {
    background: red;
}

.result_blink_wrapper:before {
    background: red;
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

@keyframes grow {
    0% {
        transform: scale(1, 1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8, 1.8);
        opacity: 0.2;
    }
}

@media screen and (max-width: 425px) {
    .pages-list a {
        font-size: 14px;
    }
    .header-banner {
        justify-content: space-around;
    }
    .pages-list {
        column-gap: 20px;
    }
}

@media screen and (max-width: 375px) {
    .pages-list a {
        font-size: 13px;
    }
    .header-banner {
        justify-content: space-around;
    }
    .pages-list {
        column-gap: 12px;
    }
}

/* Enhanced Responsive Styles */

/* Mobile First Approach */
@media (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 1.75rem !important;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
    }
    
    h3, .h3 {
        font-size: 1.25rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Spacing */
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem !important;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    /* Navbar */
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        border-radius: 0.25rem;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* Accordion Improvements for Mobile */
@media (max-width: 767.98px) {
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer .row {
        text-align: center;
    }
    
    .footer .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Form Improvements */
@media (max-width: 767.98px) {
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-select {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* Utility Classes for Responsive Design */
.text-responsive {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.heading-responsive {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
}

/* Improved Touch Targets */
.clickable {
    cursor: pointer;
    user-select: none;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for Better UX */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Social Media Icons */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 6px;
}

.social-icon-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 767.98px) {
    .social-icon-link {
        width: 36px;
        height: 36px;
    }
}

/* SEE Image Styles */
.see-illustration {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.hero-image-wrapper img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

@media (max-width: 767.98px) {
    .hero-image-wrapper img {
        max-width: 280px;
    }
}

/* Enhanced Social Share Section */
.share-inside-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
}

.social-media-wrap img {
    transition: transform 0.2s ease;
}

.social-media-wrap:hover img {
    transform: scale(1.1);
}

/* Logo Enhancements */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
}
